home *** CD-ROM | disk | FTP | other *** search
/ Champak 143 / (Vol 143) Nov 15 2011.iso / Games / bratz_fashion_designer.swf / scripts / __Packages / ClothingItem.as next >
Text File  |  2011-11-15  |  517b  |  23 lines

  1. class ClothingItem extends MovieClip
  2. {
  3.    function ClothingItem()
  4.    {
  5.       super();
  6.    }
  7.    function saveState()
  8.    {
  9.       var _loc4_ = new Object();
  10.       var _loc3_ = new Array("A","B","C","D","E","F");
  11.       var _loc2_ = 0;
  12.       while(_loc2_ < _loc3_.length)
  13.       {
  14.          if(this["Piece" + _loc3_[_loc2_]])
  15.          {
  16.             _loc4_["Piece" + _loc3_[_loc2_]] = this["Piece" + _loc3_[_loc2_]].getSave();
  17.          }
  18.          _loc2_ = _loc2_ + 1;
  19.       }
  20.       return _loc4_;
  21.    }
  22. }
  23.